[INFO] cloning repository https://github.com/grajnikanth/rust_book_exs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/grajnikanth/rust_book_exs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgrajnikanth%2Frust_book_exs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgrajnikanth%2Frust_book_exs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] ce158f0f63a61c28f1c995cff6bdfe3b8be73df2
[INFO] checking grajnikanth/rust_book_exs against master#39323a5877ee6b85e75c652c2518a97a1433a2dc for pr-102593
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgrajnikanth%2Frust_book_exs" "/workspace/builds/worker-7/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/grajnikanth/rust_book_exs on toolchain 39323a5877ee6b85e75c652c2518a97a1433a2dc
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+39323a5877ee6b85e75c652c2518a97a1433a2dc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/grajnikanth/rust_book_exs
[INFO] finished tweaking git repo https://github.com/grajnikanth/rust_book_exs
[INFO] tweaked toml for git repo https://github.com/grajnikanth/rust_book_exs written to /workspace/builds/worker-7/source/Cargo.toml
[INFO] crate git repo https://github.com/grajnikanth/rust_book_exs already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+39323a5877ee6b85e75c652c2518a97a1433a2dc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d1cd00eb6e6ea2a7969240779edeaeff35b24be85036c63b883ba933028a15f" "/opt/rustwide/cargo-home/bin/cargo" "+39323a5877ee6b85e75c652c2518a97a1433a2dc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 7165bb2ae5777757cbb549b74542f62f6f065c838cdcfcdde5560805194e9936
[INFO] running `Command { std: "docker" "start" "-a" "7165bb2ae5777757cbb549b74542f62f6f065c838cdcfcdde5560805194e9936", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "7165bb2ae5777757cbb549b74542f62f6f065c838cdcfcdde5560805194e9936", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7165bb2ae5777757cbb549b74542f62f6f065c838cdcfcdde5560805194e9936", kill_on_drop: false }`
[INFO] [stdout] 7165bb2ae5777757cbb549b74542f62f6f065c838cdcfcdde5560805194e9936
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d1cd00eb6e6ea2a7969240779edeaeff35b24be85036c63b883ba933028a15f" "/opt/rustwide/cargo-home/bin/cargo" "+39323a5877ee6b85e75c652c2518a97a1433a2dc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 98b1f50922dea937d914743ef86b6c9ae66ec380990698e6d024c16c0292e0f6
[INFO] running `Command { std: "docker" "start" "-a" "98b1f50922dea937d914743ef86b6c9ae66ec380990698e6d024c16c0292e0f6", kill_on_drop: false }`
[INFO] [stderr]     Checking rust_book_exs v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `home`
[INFO] [stdout]   --> src/bin/54_error_unwrap_1.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 26 |     let home: IpAddr = "127.0.0.1".parse().unwrap();
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_home`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> src/bin/45_errors_4.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout] 13 |     let res = match f {
[INFO] [stdout]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]   --> src/bin/53_main_return.rs:17:9
[INFO] [stdout]    |
[INFO] [stdout] 17 |     let f = File::open("hello.txt")?;
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `both_integer`
[INFO] [stdout]   --> src/bin/59_generics_4.rs:10:9
[INFO] [stdout]    |
[INFO] [stdout] 10 |     let both_integer = Point {x: 4, y: 5};
[INFO] [stdout]    |         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_both_integer`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `both_float`
[INFO] [stdout]   --> src/bin/59_generics_4.rs:11:9
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let both_float = Point {x: 1.2, y: 4.2};
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_both_float`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `integer_and_float`
[INFO] [stdout]   --> src/bin/59_generics_4.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let integer_and_float = Point {x: 5, y: 4.0};
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_integer_and_float`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `x` and `y` are never read
[INFO] [stdout]  --> src/bin/59_generics_4.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | struct Point<T, U> {
[INFO] [stdout]   |        ----- fields in this struct
[INFO] [stdout] 5 |     x: T, // x will be of type T
[INFO] [stdout]   |     ^
[INFO] [stdout] 6 |     y: U // y could be of different type U
[INFO] [stdout]   |     ^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 4 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `width` and `height` are never read
[INFO] [stdout]   --> src/bin/18_struct_display.rs:9:5
[INFO] [stdout]    |
[INFO] [stdout] 8  | struct Rectangle {
[INFO] [stdout]    |        --------- fields in this struct
[INFO] [stdout] 9  |     width: u32,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 10 |     height: u32
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0369]: binary operation `>` cannot be applied to type `T`
[INFO] [stdout]   --> src/bin/57_generics_2.rs:33:17
[INFO] [stdout]    |
[INFO] [stdout] 33 |         if item > largest {
[INFO] [stdout]    |            ---- ^ ------- T
[INFO] [stdout]    |            |
[INFO] [stdout]    |            T
[INFO] [stdout]    |
[INFO] [stdout] help: consider restricting type parameter `T`
[INFO] [stdout]    |
[INFO] [stdout] 17 | fn largest<T: std::cmp::PartialOrd>(list: &[T]) -> T {
[INFO] [stdout]    |             ++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `does_not_exist`
[INFO] [stdout]  --> src/bin/24_vectors_2.rs:9:9
[INFO] [stdout]   |
[INFO] [stdout] 9 |     let does_not_exist = &v[100]; 
[INFO] [stdout]   |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_does_not_exist`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0369`.
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]  --> src/bin/24_vectors_2.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 4 |     let mut v = vec![1, 2, 3, 4, 5];
[INFO] [stdout]   |         ----^
[INFO] [stdout]   |         |
[INFO] [stdout]   |         help: remove this `mut`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust_book_exs` due to 2 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: fields `width` and `height` are never read
[INFO] [stdout]   --> src/bin/18_struct_display.rs:9:5
[INFO] [stdout]    |
[INFO] [stdout] 8  | struct Rectangle {
[INFO] [stdout]    |        --------- fields in this struct
[INFO] [stdout] 9  |     width: u32,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 10 |     height: u32
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Alabama` is never constructed
[INFO] [stdout]  --> src/bin/11_match_ex3.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | enum UsState {
[INFO] [stdout]   |      ------- variant in this enum
[INFO] [stdout] 8 |     Alabama,
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Penny`, `Nickel` and `Dime` are never constructed
[INFO] [stdout]   --> src/bin/11_match_ex3.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | enum Coin {
[INFO] [stdout]    |      ---- variants in this enum
[INFO] [stdout] 14 |     Penny,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 15 |     Nickel,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 16 |     Dime, 
[INFO] [stdout]    |     ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Coin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `count` is assigned to, but never used
[INFO] [stdout]   --> src/bin/17_if_let_ex2.rs:28:13
[INFO] [stdout]    |
[INFO] [stdout] 28 |     let mut count = 0;
[INFO] [stdout]    |             ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: consider using `_count` instead
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `count` is never read
[INFO] [stdout]   --> src/bin/17_if_let_ex2.rs:33:9
[INFO] [stdout]    |
[INFO] [stdout] 33 |         count += 1;
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `width` and `height` are never read
[INFO] [stdout]  --> src/bin/3_debug_ex.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | struct Rectangle {
[INFO] [stdout]   |        --------- fields in this struct
[INFO] [stdout] 8 |     width: u32,
[INFO] [stdout]   |     ^^^^^
[INFO] [stdout] 9 |     height: u32
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Alabama` is never constructed
[INFO] [stdout]   --> src/bin/17_if_let_ex2.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | enum UsState {
[INFO] [stdout]    |      ------- variant in this enum
[INFO] [stdout] 15 |     Alabama,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Penny`, `Nickel` and `Dime` are never constructed
[INFO] [stdout]   --> src/bin/17_if_let_ex2.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 20 | enum Coin {
[INFO] [stdout]    |      ---- variants in this enum
[INFO] [stdout] 21 |     Penny,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 22 |     Nickel,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 23 |     Dime, 
[INFO] [stdout]    |     ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Coin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: borrow of moved value: `field_name`
[INFO] [stdout]   --> src/bin/37_hashmap_3.rs:20:36
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let field_name = String::from("Favorite color");
[INFO] [stdout]    |         ---------- move occurs because `field_name` has type `String`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 15 |     map.insert(field_name, field_value);
[INFO] [stdout]    |                ---------- value moved here
[INFO] [stdout] ...
[INFO] [stdout] 20 |     println!("Field_name is = {}", field_name);
[INFO] [stdout]    |                                    ^^^^^^^^^^ value borrowed here after move
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Quit`, `Move` and `ChangeColor` are never constructed
[INFO] [stdout]  --> src/bin/7_enum_ex4.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | enum Message {
[INFO] [stdout]   |      ------- variants in this enum
[INFO] [stdout] 5 |     Quit,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout] 6 |     Move {x: i32, y: i32}, // Struct data in this variant
[INFO] [stdout]   |     ^^^^
[INFO] [stdout] 7 |     Write(String),
[INFO] [stdout] 8 |     ChangeColor(i32, i32, i32) //data holds three integers
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 4 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: borrow of moved value: `field_value`
[INFO] [stdout]   --> src/bin/37_hashmap_3.rs:21:36
[INFO] [stdout]    |
[INFO] [stdout] 12 |     let field_value = String::from("Blue");
[INFO] [stdout]    |         ----------- move occurs because `field_value` has type `String`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 15 |     map.insert(field_name, field_value);
[INFO] [stdout]    |                            ----------- value moved here
[INFO] [stdout] ...
[INFO] [stdout] 21 |     println!("Field_name is = {}", field_value);
[INFO] [stdout]    |                                    ^^^^^^^^^^^ value borrowed here after move
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust_book_exs` due to 3 previous errors
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "98b1f50922dea937d914743ef86b6c9ae66ec380990698e6d024c16c0292e0f6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "98b1f50922dea937d914743ef86b6c9ae66ec380990698e6d024c16c0292e0f6", kill_on_drop: false }`
[INFO] [stdout] 98b1f50922dea937d914743ef86b6c9ae66ec380990698e6d024c16c0292e0f6
